package com.zjitc.service;

import com.zjitc.common.ServerResponse;
import com.zjitc.po.User;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/27 16:27
 * @description:
 */

//接口

public interface UserService{

  ServerResponse<User> login(String username, String password);

  ServerResponse<User> register(User user);

  ServerResponse<User> check_valid(String str, String type);

  ServerResponse<User> get_user_info(Integer id);

  ServerResponse<User> forget_get_question(String username);

  ServerResponse<User> reset_password(Integer id, String passwordOld, String passwordNew);

  ServerResponse<User> update_information(User user, Integer id);

  ServerResponse<User> get_information(Integer id);

  ServerResponse<User> forget_check_answer(String username, String question, String answer);

  ServerResponse<User> forget_reset_password(String username, String passwordNew, String forgetToken);
}
